package org.jiang.springbootdemo.demos.web.component;

import lombok.Data;

@Data
public class Bean {

    private String name;

    public Bean() {

    }

    public Bean(String name) {
        System.out.println("构造函数被调用啦");
        this.name = name;
    }

    @Override
    public String toString() {
        return "Bean{" +
                "name='" + name + '\'' +
                '}';
    }
}
